package com.ddz.interfaces;

import java.util.List;

import android.graphics.Point;

public interface IInput {
	public static class TouchEvent {
		public static final int TOUCH_DOWN = 0;
		public static final int TOUCH_UP = 1;
		public static final int TOUCH_DRAGGED = 2;
		public static final int TOUCH_HOLD = 3;

		public int type;
		public int x, y;
		public int pointer;
	}

	// check to see if the touch is down dragged or held
	public boolean isTouchDown(int pointer);

	// get the x position of the TouchPointer
	public int getTouchX(int pointer);

	// get the y position of the TouchPointer
	public int getTouchY(int pointer);
	
	// get the Point position of the TouchPointer
	public Point getTouchPos(int pointer);

	// returns the list of TouchEvents
	public List<TouchEvent> getTouchEvents();
}
